<?php
/**
 * Created by PhpStorm.
 * User: edmmss
 * Date: 2018/11/23
 * Time: 11:40
 */

namespace app\modules\composite;


class TextElement implements RenderInterface
{
    private $_text;

    public function __construct(string $text)
    {
        $this->_text = $text;
    }

    /**
     * className
     *
     * @date   2018/11/23
     * @author edmmss
     * @return string
     */
    public function render(): string
    {
        // TODO: Implement render() method.
        return $this->_text;
    }
}